package com.ssh.entity;

import com.common.entity.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * 文 件 名 称：Repair.
 * 文 件 说 明：家电维修表单
 * 创   建   人：zpen.
 * 创 建 时 间：2018/3/1 15:16.
 */
@Entity
@Table(name = "repair")
public class Repair extends BaseEntity {

    /*用户id*/
    private Long conId;
    /*姓名*/
    private String name;
    /*电话*/
    private String phone;
    /*地址*/
    private String address;
    /*创建时间*/
    private Date createTime;
    /*维修时间*/
    private Date repairTime;
    /*期望维修时间*/
    private Date expectRepairTime;
    /*订单编号*/
    private String orderNo;
    /*订单状态*/
    private String orderStatus;//未接：Missed 已接：Received 完成：finish  取消：cancel
    /*接单人*/
    private String completeId;
    /*设备类别*/
    private String deviceType;
    /*维修类别*/
    private String repairType;
    /*问题描述*/
    private String describe;

    public Repair() {
    }

    @Column(name = "con_id")
    public Long getConId() {
        return conId;
    }

    public void setConId(Long conId) {
        this.conId = conId;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "repair_time")
    public Date getRepairTime() {
        return repairTime;
    }

    public void setRepairTime(Date repairTime) {
        this.repairTime = repairTime;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "expect_repair_time")
    public Date getExpectRepairTime() {
        return expectRepairTime;
    }

    public void setExpectRepairTime(Date expectRepairTime) {
        this.expectRepairTime = expectRepairTime;
    }

    @Column(name = "order_no")
    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    @Column(name = "order_status")
    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    @Column(name = "complete_id")
    public String getCompleteId() {
        return completeId;
    }

    public void setCompleteId(String completeId) {
        this.completeId = completeId;
    }

    @Column(name = "device_type")
    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    @Column(name = "repair_type")
    public String getRepairType() {
        return repairType;
    }

    public void setRepairType(String repairType) {
        this.repairType = repairType;
    }

    @Column(name = "describes")
    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
}
